//
//  ShareData.h
//  Staff
//
//  Created by caiyao on 12/12/14.
//
//

#import <Foundation/Foundation.h>

typedef enum {
    AppStateLaunchNormal,
    AppStateLaunchFromBackground
}AppState;

@class Config;

@interface ShareData : NSObject {
    NSMutableDictionary *volatileDic;
}

+ (ShareData *)shareInstance;
- (Config *)getConfig;
- (BOOL)configUpToDate;
- (void)setLastConfigUpdateDate;

- (void)setAppState:(AppState)state;
- (AppState)getAppState;

- (void)vSetter:(NSString *)key value:(NSString *)value;
- (NSString *)vGetter:(NSString *)key;

@end
